package com.handtransaction.entity;

import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * 被举报的商品实体类
 */
@Component
public class TOGoods {
    private Integer tid;     //举报记录
    private Integer tgid;    //被举报商品id
    private Integer tuid;    //被举报商品对应的用户id
    private User touser;      //被举报商品对应的用户属性对象
    private Goods togoods;   //被举报商品属性对象
    private String treason;  //被举报原因
    private Date totime;

    public TOGoods(){}

    public TOGoods(Integer tid, Integer tgid, Integer tuid, User touser, Goods togoods, String treason, Date totime) {
        this.tid = tid;
        this.tgid = tgid;
        this.tuid = tuid;
        this.touser = touser;
        this.togoods = togoods;
        this.treason = treason;
        this.totime = totime;
    }

    public Integer getTid() {
        return tid;
    }

    public void setTid(Integer tid) {
        this.tid = tid;
    }

    public Integer getTgid() {
        return tgid;
    }

    public void setTgid(Integer tgid) {
        this.tgid = tgid;
    }

    public Integer getTuid() {
        return tuid;
    }

    public void setTuid(Integer tuid) {
        this.tuid = tuid;
    }

    public User getTouser() {
        return touser;
    }

    public void setTouser(User touser) {
        this.touser = touser;
    }

    public Goods getTogoods() {
        return togoods;
    }

    public void setTogoods(Goods togoods) {
        this.togoods = togoods;
    }

    public String getTreason() {
        return treason;
    }

    public void setTreason(String treason) {
        this.treason = treason;
    }

    public Date getTotime() {
        return totime;
    }

    public void setTotime(Date totime) {
        this.totime = totime;
    }

    @Override
    public String toString() {
        return "TOGoods{" +
                "tid=" + tid +
                ", tgid=" + tgid +
                ", tuid=" + tuid +
                ", touser=" + touser +
                ", togoods=" + togoods +
                ", treason='" + treason + '\'' +
                ", totime=" + totime +
                '}';
    }


}
